﻿<%@ Page Language="C#" AutoEventWireup="true"
    Inherits="Soveryn.Commerce.Pages.PayPalRedirect" Codefile="PayPalSimpleRedirect.aspx.cs" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body onload="document.Paypal.submit();">
    <form id="Paypal" name="Paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_cart" />
    <input type="hidden" name="upload" value="1" />
    <input type="hidden" name="item_name_1" value="<%= Website.WebsiteName %> - Order #<%= order.OrderDisplayID %>" />
    <input type="hidden" name="amount_1" value="<%= order.GrandTotal.Value.ToString("F2") %>" />
    <input type="hidden" name="quantity_1" value="1" />
    <input type="hidden" name="tax_cart" value="0" />
    <input type="hidden" name="business" value="<%= Website.PayPalAccountEmail %>" />
    <input type="hidden" name="invoice" value="<%= Request.QueryString["OrderID"] %>" />
    <input type="hidden" name="no_note" value="0" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="hidden" name="lc" value="US" />
    <input type="hidden" name="notify_url" value="http://<%= Website.WebsiteDomain %>/Misc/PayPalSimpleIPN.aspx" />
    <input type="hidden" name="return" value="http://<%= Website.WebsiteDomain %>/ExternalPaymentReturn.aspx?OrderID=<%= Request.QueryString["OrderID"] %>" />
    <input type="hidden" name="rm" value="2" />
    <input type="hidden" name="shopping_url" value="http://<%= Website.WebsiteDomain %>" />
    <input type="hidden" name="cancel_return" value="http://<%= Website.WebsiteDomain %>/Cart.aspx" />
    <input type="hidden" name="email" value="<%= Website.PayPalAccountEmail %>" />
    <input type="hidden" name="custom" value="<%= TransID %>" />
    <input type="hidden" name="no_shipping" value="1" />
    </form>
    <form id="form1" runat="server">
    </form>
</body>
</html>
